﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuoteConsulta.aspx.cs" Inherits="NewTierra.Pages.Operacoes.QuoteConsulta" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link rel="shortcut icon" href="../../images/Icones/favicon.ico" type="image/x-icon" />

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />
    <link href="../../Styles/jquery-ui.css" rel="stylesheet" />

    <script type="text/javascript" src="../../Scripts/jquery-1.11.0.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-ui-1.10.0.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <link href="~/Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />
    <link href="~/Styles/QuoteConsulta.css" rel="stylesheet" />
    <title></title>

    

</head>
<body>

    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <script type="text/javascript">

            var cidadeTrans, cidadeTour;

            $(document).ready(function () {

            });

            jQuery(function ($) {
                $.datepicker.regional['pt-BR'] = {
                    closeText: 'Fechar',
                    prevText: '&#x3c;Anterior',
                    nextText: 'Pr&oacute;ximo&#x3e;',
                    currentText: 'Hoje',
                    monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
                 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                    monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
                 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                    dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                    dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                    dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                    weekHeader: 'Sm',
                    dateFormat: 'dd/mm/yy',
                    firstDay: 0,
                    isRTL: false,
                    showMonthAfterYear: false,
                    yearSuffix: ''
                };
                $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
            });

            function jScript() {
                $("input[id$=txtDataIn]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataOut]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataOut]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataIn]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataPeriodoInHotel]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataPeriodoOutHotel]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataPeriodoOutHotel]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataPeriodoInHotel]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataFromTrans]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToTrans]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToTrans]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromTrans]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataFromTours]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToTours]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToTours]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromTours]").datepicker("option", "maxDate", selectedDate);
                    }
                });


                $("input[id$=txtDataFromFlights]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToFlights]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToFlights]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromFlights]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=datainicioRelatorioMapaServicos]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToFlights]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=dataFimRelatorioMapaServicos]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=datainicioRelatorioMapaServicos]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("#tabs").tabs();

                $("input[id$=txtDataAddDias]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1
                });

                $("input[id$=txtDataFromTrans]").change(function (event) {

                    var val = $('#txtDataFromTrans').val();

                    var result = $("input[id*='txtDataToTrans']").val(val);

                });

                $("input[id$=txtDataFromTours]").change(function (event) {

                    var val = $('#txtDataFromTours').val();

                    var result = $("input[id*='txtDataToTours']").val(val);

                });

                $('#<%= txtAutoTransfer.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchTransfers.ashx?param1=" + $("#txtAutoCidadeTransfer").val(),
                    minLength: 3
                });

                $('#<%= txtAutoTour.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchTours.ashx?param1=" + $("#txtAutoCidadeTours").val(),
                    minLength: 3
                });

                $('#<%= txtAutoHoteis.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchHoteis.ashx?param1=" + $("#txtAutoCidadeHotel").val(),
                    minLength: 3
                });

                $("#imgShowDivQuote").click(function () {
                    $("#divQuote").fadeOut();
                    $("#btnQuoteSelect").fadeIn();
                });

                $("#btnQuoteSelect").click(function () {
                    $("#divQuote").fadeIn();
                    $("#btnQuoteSelect").fadeOut();
                });

                $("#btnFiltroFile").click(function () {
                    $("#divQuote").fadeOut();
                    $("#btnQuoteSelect").fadeIn();
                });


                $('#ddlTransfersPorSupplier').change(function () {
                    if ($('#ddlTransfersPorSupplier option:selected').text() != 'Select...') {
                        $('#txtAutoTransfer').val($('#ddlTransfersPorSupplier option:selected').text());
                    }
                });

                $('#ddlToursPorSupplier').change(function () {
                    if ($('#ddlToursPorSupplier option:selected').text() != 'Select...') {
                        $('#txtAutoTour').val($('#ddlToursPorSupplier option:selected').text());
                    }
                });
            }

            function GetCidadeHotel() {
                alert('teste');
            }

            function MudaCorTab(val) {
                if (val == 1) {
                    $('#tabs .ui-tabs-nav a[href="#tabs-1"], #tabs-1').addClass('status1');
                } else {
                    $('#tabs .ui-tabs-nav a[href="#tabs-2"], #tabs-2').addClass('status1');
                }
            }

            function showAutoCloseMessage(MsgsExc) {
                showNotification({
                    message: MsgsExc,
                    autoClose: true,
                    type: "success",
                    duration: 5
                });
            }

            function AlertarHolidays() {
                alert('Service does not operate on this day.');
            }

            function ShowIcon() {
                var e = document.getElementById("processing");
                e.style.visibility = (e.style.visibility == 'visible') ? 'hidden' : 'visible';
            }

            function CallServerFile() {
                document.getElementById('<%= btnFiltroFile.ClientID %>').click();
            }

            function CallClienteFiltro() {
                alert('ok');
            }

            function CallServerGrupo() {
                document.getElementById('<%= btnFiltroNomePaxGrupo.ClientID %>').click();
            }

            function CallServerCidadeHotel() {
                document.getElementById('<%= btnFakeAutoCidadeHotel.ClientID %>').click();
            }

            function CallServerCidadeTransfer() {
                document.getElementById('<%= btnFakeAutoCidadeTransfer.ClientID %>').click();
            }

            function CallServerCidadeTours() {
                document.getElementById('<%= btnFakeCidadeTours.ClientID %>').click();
            }



            function RadioCheck(rb) {
                var gv = document.getElementById("<%=GridColunasFile.ClientID%>");
                var rbs = gv.getElementsByTagName("input");

                var row = rb.parentNode.parentNode;
                for (var i = 0; i < rbs.length; i++) {
                    if (rbs[i].type == "radio") {
                        if (rbs[i].checked && rbs[i] != rb) {
                            rbs[i].checked = false;
                            break;
                        }
                    }
                }
            }
			function AbrirPopUp(url, title, w, h) {
                var left = (screen.width / 2) - (w / 2);
                var top = (screen.height / 2) - (h / 2);
                return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left + '');
            }
        </script>

        <div class="bgHeader">

            <div class="bgHeader_into">

                <asp:ImageButton ID="ImgVoltarMenu" runat="server" ImageUrl="~/images/Icones/iconeMenu2.png" OnClick="VoltarMenu" ToolTip="Menu" />

            </div>

            <div class="bgHeader_into">

                <asp:Label ID="lblSupplierHeader" runat="server" Text="Quotation" CssClass="titulo" />

            </div>

        </div>

        <div id="Cotacao">

            <asp:UpdatePanel ID="UpdatePanelFormInto" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                    <div style="margin-left: auto; margin-right: auto; width: 1125px;">
                        <asp:Button ID="btnQuoteSelect" runat="server" Text="" CssClass="btnGeralAzul" Visible="false" OnClick="DivQuoteShow" />
                        <asp:Label ID="lblNomeClienteQuote" runat="server" Text="" />
                    </div>

                    <script type="text/javascript" language="javascript">
                        Sys.Application.add_load(jScript);
                    </script>

                    <div id="divQuote" style="display: <%=divQuoteShow%>;">

                        <div style="float: left; width: 239px; height: 256px;">
                            <table style="width: 244px">
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="imgShowDivQuote" runat="server" ImageUrl="../../images/Icones/seta-topo.png"
                                            Width="24px" Height="24px" OnClick="DivQuoteShowImg" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtCodGrupo" runat="server" Style="display: none;" autocomplete="off" />
                                        <asp:Label ID="lblQuoteNumber" runat="server" Text="Quote Number:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtQuoteNumber" runat="server" Text="" Width="100px" />
                                        <img id="processing" alt="load" style="visibility: hidden" src="../../images/ajax-loader.gif" />
                                        <asp:Button runat="server" ID="btnEnable" Text="Select" OnClick="btnEnable_Click" Visible="false" CssClass="btnGeralAzul" />
                                        <asp:Button ID="btnFiltroFile" Style="display: none" runat="server" OnClick="CarregarFileNumero" Text="" />

                                        <ajaxToolkit:AutoCompleteExtender
                                            ServiceMethod="SearchFile"
                                            MinimumPrefixLength="1"
                                            CompletionInterval="100"
                                            EnableCaching="False"
                                            TargetControlID="txtQuoteNumber"
                                            OnClientPopulating="ShowIcon"
                                            OnClientPopulated="ShowIcon"
                                            ID="AutoCompleteExtenderQuoteNumber" runat="server"
                                            OnClientItemSelected="CallServerFile"
                                            DelimiterCharacters=""
                                            Enabled="True">
                                        </ajaxToolkit:AutoCompleteExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="display: <%=statusFilroBotao%>;">
                                        <asp:ImageButton ID="btnImgFilter" runat="server" ImageUrl="~/images/Icones/iconFilterPeq.png" OnClick="btnImgFilter_Click" />
                                    </td>
                                </tr>

                            </table>

                            <br />

                            <div style="display: <%=statusFiltros%>; padding: 5px; width: 200px; background: #fff; border-radius: 3px; height: 102px;">

                                <span style="color: #2d76c7; font-family: Verdana; font-size: 15px; float: left; font-weight: bold;">FILTERS</span>

                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFiltroUsuario" runat="server" Text="Usuário:" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlUsuarioFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlUsuarioFiltro_SelectedIndexChanged" Width="130px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFiltroCliente" runat="server" Text="Customer:" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlClienteFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlClienteFiltro_SelectedIndexChanged" Width="130px" />
                                        </td>
                                    </tr>
                                </table>

                            </div>


                        </div>

                        <div style="float: left; width: 771px; height: 277px; margin-left: 15px;">

                            <table style="float: left; width: 653px;">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataNowTXT" runat="server" Text="Quote Date:" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDataNow" runat="server" Text="" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblNomeGroup" runat="server" Text="Pax Name Group:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNomeGrupo" runat="server" Text="" Width="250px" />
                                        <asp:Button ID="btnFiltroNomePaxGrupo" Style="display: none" runat="server" OnClick="CarregarGrupoNome" Text="" />
                                        <ajaxToolkit:AutoCompleteExtender
                                            ServiceMethod="SearchGrupo"
                                            MinimumPrefixLength="1"
                                            CompletionInterval="100"
                                            EnableCaching="False"
                                            TargetControlID="txtNomeGrupo"
                                            OnClientPopulating="ShowIcon"
                                            OnClientPopulated="ShowIcon"
                                            ID="AutoCompleteExtenderGrupoNome" runat="server"
                                            OnClientItemSelected="CallServerGrupo"
                                            DelimiterCharacters=""
                                            Enabled="true">
                                        </ajaxToolkit:AutoCompleteExtender>
                                    </td>
                                    <td>
                                        <div class="btnGroup" style="display: <%=statusGroup%>; width: 76px;">
                                            <asp:Button ID="btnOpenModalGroup" runat="server" Text="Group" CssClass="btnGeralAzul" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataIN" runat="server" Text="Date in:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataIn" runat="server" Text="" Width="80px" Enabled="False" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblCliente" runat="server" Text="Customer:" />
                                    </td>
                                    <td>
                                        <asp:TextBox runat="server" ID="txtCliente" Enabled="False" Width="250px"></asp:TextBox>
                                        <%--<asp:DropDownList ID="ddlCliente" runat="server" Enabled="False"  Width="250px" />--%>

                                        <ajaxToolkit:AutoCompleteExtender
                                            ServiceMethod="SearchCliente"
                                            MinimumPrefixLength="1"
                                            CompletionInterval="100"
                                            EnableCaching="False"
                                            TargetControlID="txtCliente"
                                            OnClientPopulating="ShowIcon"
                                            OnClientPopulated="ShowIcon"
                                            ID="AutoCompleteExtender1" runat="server"
                                            DelimiterCharacters=""
                                            Enabled="True">
                                        </ajaxToolkit:AutoCompleteExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataOut" runat="server" Text="Date out:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataOut" runat="server" Text="" Width="80px" Enabled="False" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblAdult" runat="server" Text="ADL:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlAdultos" runat="server" Enabled="False" Width="50px" AutoPostBack="True" OnSelectedIndexChanged="ddlAdultos_SelectedIndexChanged" />
                                        <asp:Button ID="btnAddNomesPaxs" runat="server" Text="names" Style="width: 50px; padding: 2px;" OnClick="btnAddNomesPaxs_Click" />
                                        <asp:Button ID="btnFakeNomesPaxs" runat="server" Style="display: none;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblTipoQuote" runat="server" Text="Type:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlTipoTarifa" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTipoTarifa_SelectedIndexChanged" Enabled="False" Width="130px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblChd" runat="server" Text="CHD:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlChd" runat="server" Enabled="False" Width="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblUsuario" runat="server" Text="User:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlUsuario" runat="server" Enabled="False" Width="130px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblInf" runat="server" Text="INF:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlInf" runat="server" Enabled="False" Width="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblLinguagem" runat="server" Text="Language:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlLinguagem" runat="server" Enabled="False" Width="130px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblTourCode" runat="server" Text="Tour Code:" />
                                    </td>
                                    <td>
                                        <asp:TextBox runat="server" ID="txtTourCode" Width="130px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblStatus" runat="server" Text="Status:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlStatus" runat="server" Enabled="False" Width="130px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblMoeda" runat="server" Text="Currency:" Visible="false" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlMoeda" runat="server" Enabled="False" Width="130px" Visible="false" />
                                    </td>
                                    <td></td>
                                    <td colspan="5">
                                        <asp:Button ID="btnNovoCotacao" runat="server" Text="New" CssClass="btnGeralAzul" OnClick="CadastrarFile" ValidationGroup="Salvar" />
                                        <asp:Button ID="btnAtualizarCotacao" runat="server" OnClick="AtualizarFile" Text="Update" CssClass="btnGeralAzul" ValidationGroup="Salvar" />
                                        <asp:Button ID="btnExcluirCotacao" runat="server" OnClick="ExcluirFile" Text="Delete" CssClass="btnGeralAzul" OnClientClick="return confirm('Excluindo esse supplier, todos os períodos e tarifas do mesmo também serão excluídas. Confirma?');" />
                                        <asp:Button ID="btnNovoFile" runat="server" OnClick="NovoFile" Text="New File" CssClass="btnGeralAzul" Visible="false" />
                                        <br />
                                        <asp:Label ID="lblMsgCadQuotatio" runat="server" Style="font-size: small; color: #fe0303;" Text="" />
                                    </td>
                                </tr>
                            </table>

                        </div>

                        <asp:Panel ID="PanelGroup" runat="server" CssClass="ModalPopup" Style="display: none; width: 400px; height: 250px; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                            <asp:ImageButton ID="btnImgFecharModal" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                            <div class="modalIntoGridGrupos">

                                <asp:GridView ID="GridGroups" runat="server"
                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no group for this quotation."
                                    Height="16px" Width="94px">
                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                    <Columns>

                                        <asp:BoundField DataField="Quotation_Grupo_NGrupo" HeaderText="Group Number">
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Pax_Group_Name" HeaderText="Group Name" SortExpression="Pax_Group_Name">
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="dataIN" HeaderText="Date in" SortExpression="dataIN" DataFormatString="{0:dd/MM/yyyy}" />
                                        <asp:BoundField DataField="dateOut" HeaderText="Date out" SortExpression="dateOut" DataFormatString="{0:dd/MM/yyyy}" />

                                        <asp:TemplateField HeaderText="">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="lnkEditarGrupo" ToolTip="Edit Group"
                                                    runat="server" ImageUrl="~/images/Icones/edit.png"
                                                    CommandArgument='<%# Eval("Quotation_Grupo_Id") %>'
                                                    OnCommand="EditarGrupo" />
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:TemplateField>

                                    </Columns>

                                    <PagerStyle CssClass="pgr"></PagerStyle>

                                </asp:GridView>

                            </div>

                        </asp:Panel>

                        <asp:ModalPopupExtender
                            ID="ModalPopupExtenderAddTarifa"
                            runat="server"
                            BackgroundCssClass="ModalPopupBG"
                            CancelControlID="btnImgFecharModal"
                            DropShadow="false"
                            Enabled="True"
                            PopupControlID="PanelGroup"
                            PopupDragHandleControlID="PopupHeader"
                            RepositionMode="RepositionOnWindowResizeAndScroll"
                            Drag="true"
                            TargetControlID="btnOpenModalGroup">
                        </asp:ModalPopupExtender>

                        <asp:Panel ID="PanelNomesPaxs" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: auto; overflow-y: auto;">

                            <asp:ImageButton ID="imgFecharModalNomesPaxs" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                            <div class="IntoDivNomesPaxs">

                                <div style="width: 100%; float: left; margin-bottom: 10px;">
                                    <asp:Button ID="btnSalvarNomesPaxs" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnSalvarNomesPaxs_Click" />
                                </div>


                                <div class="box_nomesPaxs">

                                    <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">ADULTOS:
                                    </span>

                                    <asp:DataList ID="DataListADL" runat="server">
                                        <ItemTemplate>

                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Image ID="imgADL" runat="server" ImageUrl="~/images/Icones/adlIcon.png" Width="10" Height="24" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtADLnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                        <asp:Label ID="lblIdNomeADL" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="deleteAdl" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteAdl_Command" CommandArgument='<%# Eval("ID") %>' />
                                                    </td>
                                                </tr>
                                            </table>

                                        </ItemTemplate>
                                    </asp:DataList>

                                </div>

                                <div class="box_nomesPaxs">
                                    <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">CHILDREN:
                                    </span>

                                    <asp:DataList ID="DataListCHD" runat="server">
                                        <ItemTemplate>

                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Image ID="imgCHD" runat="server" ImageUrl="~/images/Icones/chdIcon.png" Width="13" Height="18" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtCHDnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                        <asp:Label ID="lblIdNomeCHD" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="deleteChd" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteChd_Command" CommandArgument='<%# Eval("ID") %>' />
                                                    </td>
                                                </tr>
                                            </table>


                                        </ItemTemplate>
                                    </asp:DataList>

                                </div>

                                <div class="box_nomesPaxs">

                                    <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">INFANTES:
                                    </span>

                                    <asp:DataList ID="DataListINF" runat="server">
                                        <ItemTemplate>

                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Image ID="imgINF" runat="server" ImageUrl="~/images/Icones/INFicon.png" Width="18" Height="21" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtINFnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                        <asp:Label ID="lblIdNomeINF" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="deleteInf" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteInf_Command" CommandArgument='<%# Eval("ID") %>' />
                                                    </td>
                                                </tr>
                                            </table>

                                        </ItemTemplate>
                                    </asp:DataList>

                                </div>

                            </div>

                        </asp:Panel>

                        <asp:ModalPopupExtender
                            ID="ModalPopupExtenderNomesPaxs"
                            runat="server"
                            BackgroundCssClass="ModalPopupBG"
                            CancelControlID="imgFecharModalNomesPaxs"
                            DropShadow="false"
                            Enabled="True"
                            PopupControlID="PanelNomesPaxs"
                            PopupDragHandleControlID="PopupHeader"
                            RepositionMode="RepositionOnWindowResizeAndScroll"
                            Drag="true"
                            TargetControlID="btnFakeNomesPaxs">
                        </asp:ModalPopupExtender>

                    </div>

                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="btnNovoCotacao" />
                    <asp:PostBackTrigger ControlID="btnNovoFile" />
                </Triggers>
            </asp:UpdatePanel>

            <asp:Panel ID="PanelOperacoes" runat="server">

                <div class="form_op">

                    <div id="tabs">
                        <ul>
                            <%--<li><a href="#tabs-1">Quote</a></li>
                            <li><a href="#tabs-2">New File</a></li>--%>
                            <li><a href="#tabs-3">Hotels</a></li>
                            <li><a href="#tabs-4">Transfers</a></li>
                            <li><a href="#tabs-5">Tours</a></li>
                            <li><a href="#tabs-6">File</a></li>
                            <li><a href="#tabs-7">Print Offer</a></li>
                            <li><a href="#tabs-8">Reports</a></li>
                            <li><a href="#tabs-9">Emails</a></li>
                        </ul>

                        <asp:Panel ID="panelFileNovo" runat="server" Visible="false">
                            <div id="tabs-1">

                                <asp:UpdatePanel ID="UpdatePanelNewQuote" runat="server">
                                    <Triggers>
                                        <asp:PostBackTrigger ControlID="btnGeraGrade" />
                                    </Triggers>
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>Base:                                
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtBaseDeNew" runat="server" MaxLength="2" placeholder="From" Width="50px">2</asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtBaseAteNew" runat="server" MaxLength="2" placeholder="To" Width="50px">2</asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnAddBaseNew" runat="server" Text="Add" OnClick="btnAddBaseNew_Click" /></td>
                                                <td>
                                                    <asp:Button ID="btnAddTC" runat="server" Text="Add TC" OnClick="btnAddTC_Click" />
                                                </td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td>
                                                    <asp:Button ID="btnAddOpt" runat="server" Text="Add Option" OnClick="btnAddOpt_Click" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnNomearOpts" runat="server" Text="Name Options" OnClick="btnNomearOpts_Click" />
                                                </td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td>
                                                    <asp:Button ID="btnDelColuna" runat="server" Text="Delete Column" OnClick="btnDelColuna_Click" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnOrdenarColuna" runat="server" Text="Sort Column" OnClick="btnOrdenarColuna_Click" Visible="false" />
                                                </td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td>
                                                    <asp:Button ID="btnGerarFile" runat="server" Text="Export File" OnClick="btnGerarFile_Click" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnGeraGrade" runat="server" Text="Grid" OnClick="btnGeraGrade_Click" />
                                                </td>
                                            </tr>
                                        </table>

                                        <br />
                                        <br />

                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnQuote1" runat="server" Text="Op 1" OnClick="btnQuote1_Click" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote2" runat="server" Text="Op 2" OnClick="btnQuote2_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote3" runat="server" Text="Op 3" OnClick="btnQuote3_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote4" runat="server" Text="Op 4" OnClick="btnQuote4_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote5" runat="server" Text="Op 5" OnClick="btnQuote5_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote6" runat="server" Text="Op 6" OnClick="btnQuote6_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote7" runat="server" Text="Op 7" OnClick="btnQuote7_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote8" runat="server" Text="Op 8" OnClick="btnQuote8_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote9" runat="server" Text="Op 9" OnClick="btnQuote9_Click" Visible="false" /></td>
                                                <td>
                                                    <asp:Button ID="btnQuote10" runat="server" Text="Op 10" OnClick="btnQuote10_Click" Visible="false" /></td>
                                            </tr>
                                        </table>

                                        <h3>
                                            <asp:Label ID="lblQuoteAtiva" runat="server" Text="" />
                                        </h3>

                                        <div style="overflow-x: auto; overflow-y: auto; width: 1080px; height: auto;">

                                            <asp:GridView ID="GridBasesTarifas" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                CssClass="mGrid" Style="margin-top: 5px; margin-left: 0px;" Width="650px">

                                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                <SelectedRowStyle CssClass="SelectedRowStyle" />

                                                <Columns>

                                                    <asp:TemplateField HeaderText="Del">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="ExluirFileCarrinhoTarifas" ToolTip="Delete"
                                                                runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>'
                                                                OnCommand="ExluirFileCarrinhoTarifas"
                                                                ImageUrl="~/images/Icones/delete.png" />

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="From">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd.MM}", Eval("dtFrom")) %>' ToolTip='<%# string.Format("{0:dd.MM.yyyy}", Eval("dtFrom")) %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="To">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd.MM}", Eval("dtTo")) %>' ToolTip='<%# string.Format("{0:dd.MM.yyyy}", Eval("dtTo")) %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Nome">
                                                        <ItemTemplate>

                                                            <table style="border: none;">
                                                                <tr>
                                                                    <td style="width: 30px; border: none; font-weight: bold;">
                                                                        <asp:Label ID="lblCidadeIata" runat="server" Text="City" Font-Size="Smaller" />
                                                                        <asp:Label ID="lblCidade" runat="server" Text="City" Font-Size="Smaller" Style="display: none;" />
                                                                    </td>
                                                                    <td style="width: 100px; border: none;">
                                                                        <asp:Label ID="lblNomeSupplier" runat="server" Text=""></asp:Label>
                                                                        <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                    </td>
                                                                    <td style="width: 30px; border: none;">
                                                                        <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Serviços" OnCommand="OpenSubServicosNewFile" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("dtFrom"), Eval("dtTo"), Eval("Paying_Pax")) %>' />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                            <asp:Label ID="lblIdRetorna" runat="server" Text='<%# Eval("IdRetorna") %>' Visible="false"></asp:Label>
                                                            <asp:Label ID="lblFlag" runat="server" Text='<%# Eval("Flag") %>' Visible="false"></asp:Label>

                                                            <asp:Label ID="lblDAY" runat="server" Text='<%# Eval("DAY") %>' Style="display: none;"></asp:Label>

                                                            <asp:Label ID="lblNomeStatus" runat="server" Text='<%# Eval("MealStatus") %>' Visible="false"></asp:Label>

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Rooms">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRoom" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Room") : "" %>'></asp:Label>
                                                            - 
                                                        <asp:Label ID="lblCategoria" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Categoria") : "" %>'></asp:Label>

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Stat">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Change status" OnCommand="AtualizarStatusNew" OnClientClick="return confirm('Do you want to change this item's status?');" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Status"), Eval("Flag")) %>' />
                                                            <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                        </ItemTemplate>

                                                        <ItemStyle HorizontalAlign="Center" />

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Flight">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="imgFlights" runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="OpenFlightsNew" ToolTip="Flights" />
                                                            <asp:Label ID="IdFileTarifas" Text='<%# Eval("IdRetorna") %>' runat="server" Visible="false" />

                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Bulk">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="imgBulk" runat="server" OnCommand="VerificaBulkGrade" ToolTip="Bulk" OnClientClick="return confirm('Do you want to change the bulk for this rate?');" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Bulk"), Eval("Flag")) %>' />
                                                            <asp:Label ID="lblBulk" Text='<%# Eval("Bulk") %>' runat="server" Visible="false" />

                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel8" CommandArgument='<%# string.Format("{0},{1},{2}", 8, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel9" CommandArgument='<%# string.Format("{0},{1},{2}", 9, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel10" CommandArgument='<%# string.Format("{0},{1},{2}", 10, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel11" CommandArgument='<%# string.Format("{0},{1},{2}", 11, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel12" CommandArgument='<%# string.Format("{0},{1},{2}", 12, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel13" CommandArgument='<%# string.Format("{0},{1},{2}", 13, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel14" CommandArgument='<%# string.Format("{0},{1},{2}", 14, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel15" CommandArgument='<%# string.Format("{0},{1},{2}", 15, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel16" CommandArgument='<%# string.Format("{0},{1},{2}", 16, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel17" CommandArgument='<%# string.Format("{0},{1},{2}", 17, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel18" CommandArgument='<%# string.Format("{0},{1},{2}", 18, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel19" CommandArgument='<%# string.Format("{0},{1},{2}", 19, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel20" CommandArgument='<%# string.Format("{0},{1},{2}", 20, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel21" CommandArgument='<%# string.Format("{0},{1},{2}", 21, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel22" CommandArgument='<%# string.Format("{0},{1},{2}", 22, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel23" CommandArgument='<%# string.Format("{0},{1},{2}", 23, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel24" CommandArgument='<%# string.Format("{0},{1},{2}", 24, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel25" CommandArgument='<%# string.Format("{0},{1},{2}", 25, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel26" CommandArgument='<%# string.Format("{0},{1},{2}", 26, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel27" CommandArgument='<%# string.Format("{0},{1},{2}", 27, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel28" CommandArgument='<%# string.Format("{0},{1},{2}", 28, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel29" CommandArgument='<%# string.Format("{0},{1},{2}", 29, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel30" CommandArgument='<%# string.Format("{0},{1},{2}", 30, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel31" CommandArgument='<%# string.Format("{0},{1},{2}", 31, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                </Columns>
                                                <PagerStyle CssClass="pgr"></PagerStyle>

                                            </asp:GridView>
                                        </div>


                                    </ContentTemplate>
                                </asp:UpdatePanel>

                            </div>

                            <div id="tabs-2">

                                <asp:UpdatePanel ID="UpdatePanelNewFile" runat="server">
                                    <ContentTemplate>

                                        <div style="overflow-x: auto; overflow-y: auto; width: 1080px; height: auto;">

                                            <asp:GridView ID="GridBasesTarifasNewFile" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                CssClass="mGrid" Style="margin-top: 5px; margin-left: 0px;" Width="650px">

                                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                <SelectedRowStyle CssClass="SelectedRowStyle" />

                                                <Columns>

                                                    <asp:TemplateField HeaderText="Del">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="ExluirFileCarrinhoTarifas" ToolTip="Delete"
                                                                runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>'
                                                                OnCommand="ExluirFileCarrinhoTarifasNew"
                                                                ImageUrl="~/images/Icones/delete.png" />

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="From">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("dtFrom")) %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="To">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("dtTo")) %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Name">
                                                        <ItemTemplate>

                                                            <table style="border: none;">
                                                                <tr>
                                                                    <td style="width: 30px; border: none; font-weight: bold;">
                                                                        <asp:Label ID="lblCidadeIata" runat="server" Text="City" Font-Size="Smaller" />
                                                                        <asp:Label ID="lblCidade" runat="server" Text="City" Font-Size="Smaller" Style="display: none;" />
                                                                    </td>
                                                                    <td style="width: 100px; border: none;">
                                                                        <asp:Label ID="lblNomeSupplier" runat="server" Text=""></asp:Label>
                                                                        <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                    </td>
                                                                    <td style="width: 30px; border: none;">
                                                                        <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Subservices" OnCommand="OpenSubServicosNewFile" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("dtFrom"), Eval("dtTo"), Eval("Paying_Pax")) %>' />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                            <asp:Label ID="lblIdRetorna" runat="server" Text='<%# Eval("IdRetorna") %>' Visible="false"></asp:Label>
                                                            <asp:Label ID="lblNomeStatus" runat="server" Text='<%# Eval("MealStatus") %>' Visible="false"></asp:Label>
                                                            <asp:Label ID="lblFlag" runat="server" Text='<%# Eval("Flag") %>' Visible="false"></asp:Label>

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Rooms">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRoom" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Room") : "" %>'></asp:Label>
                                                            - 
                                                        <asp:Label ID="lblCategoria" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Categoria") : "" %>'></asp:Label>

                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Stat">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Change status" OnCommand="AtualizarStatusNew" OnClientClick="return confirm('Do you want to change this item's status?');" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Status")) %>' />
                                                            <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                        </ItemTemplate>

                                                        <ItemStyle HorizontalAlign="Center" />

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Flight">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="imgFlights" runat="server" CommandArgument='<%# string.Format("{0}", Eval("IdRetorna")) %>' OnCommand="OpenFlightsNew" ToolTip="Flights" />
                                                            <asp:Label ID="IdFileTarifas" Text='<%# Eval("IdRetorna") %>' runat="server" Visible="false" />

                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Bulk">
                                                        <ItemTemplate>

                                                            <asp:ImageButton ID="imgBulk" runat="server" OnCommand="VerificaBulkGrade" ToolTip="Bulk" OnClientClick="return confirm('Do you want to change the bulk for this rate?');" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Bulk")) %>' />
                                                            <asp:Label ID="lblBulk" Text='<%# Eval("Bulk") %>' runat="server" Visible="false" />

                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Value / Pax">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel8" CommandArgument='<%# string.Format("{0},{1},{2}", 8, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                        <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkValorTotalHotel9" CommandArgument='<%# string.Format("{0},{1},{2},{3}", 9, Eval("IdRetorna"), Eval("Flag"), Container.DataItemIndex) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                            <asp:Label ID="lblIdTarifaTC" runat="server" Text="" Visible="false" />
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                        <ItemStyle HorizontalAlign="Center" Wrap="False" Width="100px" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Total">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblValorTotalHotel10" runat="server" Text="" />
                                                            <asp:LinkButton ID="lnkValorTotalHotel10" Style="display: none;" CommandArgument='<%# string.Format("{0},{1},{2}", 10, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                        <ItemStyle HorizontalAlign="Center" Wrap="False" Width="100px" />
                                                    </asp:TemplateField>

                                                </Columns>
                                                <PagerStyle CssClass="pgr"></PagerStyle>

                                            </asp:GridView>

                                        </div>

                                    </ContentTemplate>
                                </asp:UpdatePanel>


                            </div>
                        </asp:Panel>

                        <div id="tabs-3">

                            <asp:UpdatePanel ID="UpdatePanelHoteis" runat="server">
                                <ContentTemplate>

                                    <div class="tabHoteis">

                                        <div class="FiltrosHoteis radius" style="width: 700px;">

                                            <div class="filtros_drop" style="width: 700px;">


                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoHotel" runat="server" Text="Period:" /><br />
                                                    <asp:TextBox ID="txtDataPeriodoInHotel" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataPeriodoOutHotel" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px">
                                                    <asp:Label ID="lblCidadeHotel" runat="server" Text="City:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeHotel" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeAutoCidadeHotel" Style="display: none" runat="server" OnClick="txtAutoCidadeHotel_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeHotel"
                                                        ID="AutoCompleteExtenderCidadeHotel" runat="server"
                                                        OnClientItemSelected="CallServerCidadeHotel"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="ddlCidadeHotel" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCidadeHotel_SelectedIndexChanged" Width="250px" />--%>
                                                </div>

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblHoteisFiltros" runat="server" Text="Hotels:" /><br />
                                                    <asp:DropDownList ID="ddlHoteisFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlHoteisFiltro_SelectedIndexChanged" Width="190px" />
                                                </div>

                                                <%--<div class="filtros_drop_into">
                                                <asp:Label ID="lblRoomHotel" runat="server" Text="Room:" /><br />
                                                <asp:DropDownList ID="ddlRoomHotel" runat="server" />
                                            </div>--%>

                                                <div class="filtros_drop_into_btn" style="width: 90px">

                                                    <asp:Button ID="btnProcuraHoteis" runat="server" Text="Search" CssClass="btnGeralAzul" OnClick="btnProcurarHoteis_Click" />
                                                    <%--<asp:ImageButton ID="btnProcurarHoteis" runat="server" ToolTip="Procurar" ImageUrl="~/images/Icones/search2.png" OnClick="btnProcurarHoteis_Click" Height="20px" Width="20px" />--%>
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px; margin-left: 5px; display: none;">

                                                    <asp:RadioButtonList ID="rdoOptFileHotel" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 272px; margin-left: 14px;">

                                                    <asp:Label ID="lblHotelSearch" runat="server" Text="Hotel:" /><br />
                                                    <asp:TextBox ID="txtAutoHoteis" runat="server" Text="" Width="240px"></asp:TextBox>

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 78px; margin-left: 0px;">

                                                    <asp:Label ID="lblPaxsHoteis" runat="server" Text="Paxs:" Visible="false" /><br />
                                                    <asp:DropDownList ID="ddlPaxsHoteis" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPaxsHoteis_SelectedIndexChanged" Visible="false" Width="50px" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 86px;">

                                                    <asp:Label ID="lblEstacaoHoteis" runat="server" Text="Season:" Visible="false" /><br />
                                                    <asp:DropDownList ID="ddlEstacoesHoteis" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="ddlEstacoesHoteis_SelectedIndexChanged" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 61px;">
                                                    <asp:Button ID="ShowAddTarifaVazia" runat="server" Text="Add" OnClick="ShowAddTarifaVazia_Click" Visible="false" />
                                                </div>

                                                <%--<div class="filtros_drop_into">
                                                <asp:Label ID="lblSelectFDS" runat="server" Text="FDS:" /><br />
                                                <asp:DropDownList ID="ddlSelectFDS" runat="server" Width="100px" AutoPostBack="True" />
                                            </div>--%>
                                            </div>

                                        </div>

                                        <div class="DataListHoteis">

                                            <asp:DataList ID="DataListHoteis" runat="server" RepeatDirection="Vertical" RepeatColumns="1" OnItemDataBound="DataListHoteis_ItemDataBound" Height="85px" Width="848px">

                                                <ItemTemplate>

                                                    <div class="EstiloDataListHoteis">

                                                        <div class="infos">

                                                            <div class="TituloHotelDL">

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="lblTituloPacote" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Bold="True" ForeColor="#0e86be" Style="font-size: 18px; font-family: Verdana;"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblQuarto" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tarif_categoria_nome") %>' Font-Bold="true" Font-Size="12px"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblTipoRoom" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_room_nome") %>' Font-Size="12px" Style="font-family: Verdana; color: black;" Font-Bold="True"></asp:Label></span>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </div>

                                                            <div style="float: left; height: 34px; width: 243px;">

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Image ID="spanRecomended" runat="server" ImageUrl="~/images/Icones/recommended.png" ToolTip="Recommended" Style="width: 20px; height: 20px; border: none" />
                                                                            <%--<span id="spanRecomended" runat="server" class="fa fa-thumbs-up"></span>--%>
                                                                            <asp:Label ID="lblRecomend" runat="server" Text='<%# Eval("Recomended") %>' Visible="false"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <%--<asp:Image ID="ibtnRecommended" runat="server" ImageUrl='<%# Eval("Recomended") %>' ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />--%>
                                                                            <asp:ImageButton ID="ibtnInfoHotel" runat="server" ImageUrl="~/images/Icones/infoN.png" OnCommand="InfoHotel" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' ToolTip="Hotel Info" Style="width: 24px; height: 24px;" />
                                                                            <asp:ImageButton ID="ibtnTarifas" runat="server" ImageUrl="~/images/Icones/exchange.png" OnCommand="ibtnTarifas_Command" ToolTip="Rates" Style="width: 24px; height: 24px;" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="Black"></asp:Label>
                                                                            <asp:Label ID="lblMoedaId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_id") %>' Visible="false"></asp:Label>
                                                                            <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# Eval("S_merc_tarif_porApartamento") != "" && Eval("S_merc_tarif_tarifa_total") != ""  ? string.Format("{0:N}", Convert.ToDecimal(Eval("S_merc_tarif_tarifa_total")) / Convert.ToDecimal(Eval("Tipo_room_number"))) : Eval("S_merc_tarif_tarifa_total") %>' ForeColor="Black" Font-Bold="True"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </div>

                                                            <div class="EnderecoHotel">

                                                                <asp:Label ID="lblQuartoID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tarif_categoria_id") %>' Style="display: none;"></asp:Label>
                                                                <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Style="display: none;"></asp:Label>

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Package: 
                                                                                <asp:Label ID="lblNomePacote" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Pacote_nome") %>' Visible="True"></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Season: 
                                                                                <asp:Label ID="lblEstacao" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_mercado_estacao_nome") %>'></asp:Label>
                                                                            </span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Date In:
                                                                                <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_from")) %>'></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Date Out:
                                                                                <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_to")) %>'></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">
                                                                                <asp:Label ID="lblFDS" runat="server" Text='<%# string.Format("{0} / {1}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_fdsFrom"), DataBinder.Eval(Container.DataItem, "S_merc_periodo_fdsTo")) %>'></asp:Label></span>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>

                                                        </div>

                                                        <div class="DataListHoteisTarifas" style="display: <%=statusDataListHoteisTarifas%>;">

                                                            <table>
                                                                <tr>
                                                                    <td>Rates per person
                                                                   <asp:DataList ID="DataListHoteisTarifas" runat="server" Height="16px" RepeatColumns="1" RepeatDirection="Vertical">
                                                                       <ItemTemplate>
                                                                           <div style="border: 1px solid #e8e8e8; border-radius: 5px;">
                                                                               <table>
                                                                                   <td>
                                                                                       <asp:ImageButton ID="OpenPoliticaCHD" ToolTip="CHD"
                                                                                           runat="server" CommandArgument='<%# Eval("S_merc_tarif_id") %>'
                                                                                           OnCommand="OpenPoliticaCHD_Command" />
                                                                                   </td>
                                                                                   <td style="width: 80px;">
                                                                                       <asp:Label ID="lblCategoria" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tarif_categoria_nome") %>' Visible="false" />
                                                                                       <asp:Label ID="lblCategoriaId" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tarif_categoria_id") %>' Visible="false" />
                                                                                       <asp:Label ID="lblRoom" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tipo_room_nome") %>' />
                                                                                       <asp:Label ID="lblRoomId" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tipo_room_id") %>' Visible="false" />
                                                                                       <asp:Label ID="lblSupplierId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_id") %>' Visible="false"></asp:Label>
                                                                                       <asp:Label ID="lblEmailSupplier" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("EmailSupplier") %>' Visible="false"></asp:Label>

                                                                                   </td>
                                                                                   <td style="width: 100px;">
                                                                                       <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("Moeda_id") %>' Visible="false"></asp:Label>
                                                                                       <asp:Label ID="lblMoeda" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") == null ? Eval("Moeda_sigla") : "" %>'></asp:Label>
                                                                                       <asp:Label ID="lblValorTotal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_tarif_porApartamento") == "" || Eval("S_merc_tarif_porApartamento") == null ? Eval("S_merc_tarif_tarifa_total") : string.Format("{0:N}", Convert.ToDecimal(Eval("S_merc_tarif_tarifa_total")) / Convert.ToDecimal(Eval("Tipo_room_number")))   %>' />
                                                                                       <asp:Label ID="lblValorTotalCliente" runat="server" Visible="false" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_tarif_porApartamento") == "" || Eval("S_merc_tarif_porApartamento") == null ? Eval("S_merc_tarif_tarifa_total") : string.Format("{0:N}", Convert.ToDecimal(Eval("S_merc_tarif_tarifa_total")) / Convert.ToDecimal(Eval("Tipo_room_number")))   %>' />
                                                                                       <asp:Label ID="lblStatus" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") != null ? Eval("S_mercado_tarifa_status_nome") : "" %>' />
                                                                                   </td>
                                                                                   <td>
                                                                                       <asp:DropDownList ID="ddlQtd" runat="server">
                                                                                           <asp:ListItem Text="0" Value="0" />
                                                                                           <asp:ListItem Text="1" Value="1" />
                                                                                           <asp:ListItem Text="2" Value="2" />
                                                                                           <asp:ListItem Text="3" Value="3" />
                                                                                           <asp:ListItem Text="4" Value="4" />
                                                                                           <asp:ListItem Text="5" Value="5" />
                                                                                           <asp:ListItem Text="6" Value="6" />
                                                                                           <asp:ListItem Text="7" Value="7" />
                                                                                           <asp:ListItem Text="8" Value="8" />
                                                                                           <asp:ListItem Text="9" Value="9" />
                                                                                           <asp:ListItem Text="10" Value="10" />
                                                                                       </asp:DropDownList>
                                                                                   </td>
                                                                                   <td>
                                                                                       <asp:Label ID="lblIdTarifa" runat="server" Text='<%# Eval("S_merc_tarif_id") %>' Visible="false" />
                                                                                       <asp:Button ID="btnAddRooms" runat="server" CssClass="btnGeralAzul" Text="Add" OnClick="BtnAddRooms" />
                                                                                   </td>
                                                                               </table>



                                                                           </div>
                                                                       </ItemTemplate>
                                                                   </asp:DataList>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>

                                                        <div class="DataListHoteisTarifas" style="display: <%=statusDataListHoteisTarifas%>;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <asp:DataList ID="DataListHoteisMeals" runat="server" Height="16px" RepeatColumns="1" RepeatDirection="Vertical">
                                                                            <ItemTemplate>

                                                                                <div style="border: 1px solid #e8e8e8; border-radius: 5px;">

                                                                                    <table>
                                                                                        <td style="width: 200px;">
                                                                                            <asp:Label ID="lblMealNome" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("S_meal_nome") %>' />
                                                                                        </td>
                                                                                        <td style="width: 100px;">
                                                                                            <asp:Label ID="lblSupplierMealId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMealId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("Moeda_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMoedaMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_tarifa_total") != null ? Eval("Moeda_sigla") : "" %>' />
                                                                                            <asp:Label ID="lblValorTotalMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_tarifa_total") %>' />
                                                                                            <asp:Label ID="lblValorTotalMealCliente" runat="server" Visible="false" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_tarifa_total") %>' />
                                                                                            <asp:Label ID="lblStatusMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") %>' />
                                                                                        </td>
                                                                                        <td style="vertical-align: top">
                                                                                            <asp:Button ID="btnAddMeals" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddMeal" CommandArgument='<%# Eval("S_merc_meal_id") %>' />
                                                                                        </td>
                                                                                    </table>

                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:DataList>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>

                                                    </div>

                                                </ItemTemplate>

                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-4">

                            <asp:UpdatePanel ID="UpdatePanelTransfers" runat="server">
                                <ContentTemplate>

                                    <div class="tabTransfers">

                                        <div class="FiltrosHoteis radius" style="width: 720px;">

                                            <div class="filtros_drop" style="width: 720px;">

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoTransfersTXT" runat="server" Text="Dates:" /><br />
                                                    <asp:TextBox ID="txtDataFromTrans" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataToTrans" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px; margin-left: 35px;">
                                                    <asp:Label ID="lblCidadeTransTXT" runat="server" Text="City:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeTransfer" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeAutoCidadeTransfer" Style="display: none" runat="server" OnClick="txtAutoCidadeTransfer_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeTransfer"
                                                        ID="AutoCompleteExtenderCidadeTransfer" runat="server"
                                                        OnClientItemSelected="CallServerCidadeTransfer"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="ddlCidadeTransFiltro" runat="server" Width="250px" AutoPostBack="True" OnSelectedIndexChanged="ddlCidadeTransFiltro_SelectedIndexChanged" />--%>
                                                </div>

                                                <div class="filtros_drop_into" style="opacity: 0;">
                                                    <asp:Label ID="lblSuppliersTransTXT" runat="server" Text="Supplier:" /><br />
                                                    <asp:DropDownList ID="ddlSuppliersTransPorCidade" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSuppliersTransPorCidade_SelectedIndexChanged" Width="190px" />
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px;">

                                                    <asp:Button ID="btnSearchTransfers" runat="server" Text="Search" CssClass="btnGeralAzul" OnClick="btnSearchTransfers_Click" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 73px; margin-left: 5px; display: none;">

                                                    <asp:RadioButtonList ID="rdoOptFileTranfers" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into" style="width: 50px;">
                                                    <asp:Label ID="lblNumPaxTransfersTXT" runat="server" Text="Paxs:" /><br />
                                                    <asp:DropDownList ID="ddlNumPaxTransfers" runat="server" AutoPostBack="True" Width="50px" OnSelectedIndexChanged="ddlNumPaxTransfers_SelectedIndexChanged" />
                                                </div>

                                                <div style="width: 274px; height: 46px; margin-left: 16px; float: left;">
                                                    <asp:Label ID="lblSearchTransf" runat="server" Text="Transfer:" /><br />
                                                    <asp:TextBox ID="txtAutoTransfer" runat="server" ClientIDMode="Static" Text="" Width="240px"></asp:TextBox>
                                                </div>

                                                <div class="filtros_drop_into" style="margin-left: 0px;">
                                                    <asp:Label ID="lblTransferPorSupplier" runat="server" Text="Transfers:" /><br />
                                                    <asp:DropDownList ID="ddlTransfersPorSupplier" runat="server" Width="190px" AutoPostBack="true">
                                                        <asp:ListItem Value="0" Text="Select..."></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>

                                            </div>

                                        </div>

                                        <div class="DataListHoteis">

                                            <asp:DataList ID="DataListTransfersSubServicos" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px" Width="793px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>'></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Font-Size="10px" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>'></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td></span><span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base from:
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label>
                                                                    </span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base to:
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotalCliente" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblIdMServicoTemporada" runat="server" Text='<%# Eval("IdMServico_Temporada") %>' Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date In:
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label>
                                                                        </span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date Out:
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label>
                                                                        </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Image ID="spanRecomended" runat="server" ImageUrl="~/images/Icones/recommended.png" ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />
                                                                        <%--<span id="spanRecomended" runat="server" class="fa fa-thumbs-up"></span>--%>
                                                                        <asp:Label ID="lblRecomend" runat="server" Text='<%# Eval("Recommended") %>' Visible="false"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <%--<asp:Image ID="ibtnTransferRecommended" runat="server" ImageUrl='<%# Eval("Recommended") == "True" ? "~/images/Icones/infoN.png": "" %>' ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />--%>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CommandArgument="<%# Container.ItemIndex %>" CssClass="btnGeralAzul" OnCommand="BtnAddTransferFileSub" Text="Add" />
                                                                        <asp:Button ID="btnSubServAdicionados" Style="display: none" runat="server" CommandArgument='<%# Eval("IdMServico_Temporada") %>' CssClass="btnGeralAzul" OnCommand="VerTransfSubServicosAdicionados" Text="Sub Serviços" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:DataList>

                                            <asp:Button ID="btnFakeOpenModalSubServAdicionadosTrf" runat="server" Text="Group" Style="display: none" />

                                            <asp:Panel ID="PanelSubServAdicionadosTrf" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                                                <asp:ImageButton ID="imgFechaModalSubServAdiconadosTrf" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                                                <asp:GridView ID="GridSubServPorTemporadaTrf" runat="server"
                                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid"
                                                    Height="16px"
                                                    Width="94px">
                                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                    <Columns>

                                                        <asp:BoundField DataField="S_nome" HeaderText="Supplier">

                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Base_de" HeaderText="From" />

                                                        <asp:BoundField DataField="Base_ate" HeaderText="To" />

                                                        <asp:BoundField DataField="MServico_Valores_Bulk_Total" HeaderText="Value" />

                                                    </Columns>
                                                    <PagerStyle CssClass="pgr"></PagerStyle>
                                                </asp:GridView>

                                            </asp:Panel>

                                            <asp:ModalPopupExtender
                                                ID="ModalPopupExtenderSubServAddTrf"
                                                runat="server"
                                                BackgroundCssClass="ModalPopupBG"
                                                CancelControlID="imgFechaModalSubServAdiconadosTrf"
                                                DropShadow="false"
                                                Enabled="True"
                                                PopupControlID="PanelSubServAdicionadosTrf"
                                                PopupDragHandleControlID="PopupHeader"
                                                RepositionMode="RepositionOnWindowResizeAndScroll"
                                                Drag="true"
                                                TargetControlID="btnFakeOpenModalSubServAdicionadosTrf">
                                            </asp:ModalPopupExtender>

                                            <asp:DataList ID="DataListTransfers" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base from: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base to: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotalCliente" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Image ID="spanRecomended" runat="server" ImageUrl="~/images/Icones/recommended.png" ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />
                                                                        <%--<span id="spanRecomended" runat="server" class="fa fa-thumbs-up"></span>--%>
                                                                        <asp:Label ID="lblRecomend" runat="server" Text='<%# Eval("Recommended") %>' Visible="false"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <%--<asp:Image runat="server" ImageUrl='<%# Eval("Recomended") == "True" ? "~/images/Icones/infoN.png": "" %>' ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />--%>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddTranfersFile" CommandArgument="<%# Container.ItemIndex %>" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>


                                                    </div>

                                                </ItemTemplate>
                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-5">

                            <asp:UpdatePanel ID="UpdatePanelTours" runat="server">
                                <ContentTemplate>

                                    <div class="tabTours">

                                        <div class="FiltrosHoteis radius" style="width: 720px;">

                                            <div class="filtros_drop" style="width: 720px; height: 146px;">

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoToursTXT" runat="server" Text="Date:" /><br />
                                                    <asp:TextBox ID="txtDataFromTours" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataToTours" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px; margin-left: 35px;">
                                                    <asp:Label ID="lblCidadeToursCidadeTXT" runat="server" Text="City:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeTours" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeCidadeTours" Style="display: none" runat="server" OnClick="txtAutoCidadeTours_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeTours"
                                                        ID="AutoCompleteExtenderCidadeTours" runat="server"
                                                        OnClientItemSelected="CallServerCidadeTours"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="dllCidadeToursFiltro" runat="server" AutoPostBack="True" Width="250px" OnSelectedIndexChanged="ddlCidadeToursFiltro_SelectedIndexChanged" />--%>
                                                </div>

                                                <div class="filtros_drop_into" style="opacity: 0">
                                                    <asp:Label ID="lblSupplierToursTXT" runat="server" Text="Supplier:" /><br />
                                                    <asp:DropDownList ID="ddlSupplierToursFiltro" runat="server" Width="190px" AutoPostBack="True" OnSelectedIndexChanged="ddlSupplierToursFiltro_SelectedIndexChanged" />
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px;">

                                                    <asp:Button ID="btnProcurarTours" runat="server" Text="Search" CssClass="btnGeralAzul" OnClick="btnSearchTours_Click" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 73px; margin-left: 5px; display: none;">

                                                    <asp:RadioButtonList ID="rdoOptFileTours" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into" style="width: 50px; height: 50px;">
                                                    <asp:Label ID="lblNumPaxsTours" runat="server" Text="Paxs:" /><br />
                                                    <asp:DropDownList ID="ddlNumPaxsTours" runat="server" Width="50px" AutoPostBack="True" OnSelectedIndexChanged="ddlNumPaxsTours_SelectedIndexChanged" />
                                                </div>

                                                <div style="width: 274px; height: 50px; margin-left: 16px; float: left;">
                                                    <asp:Label ID="lblSearchTour" runat="server" Text="Tour:" /><br />
                                                    <asp:TextBox ID="txtAutoTour" runat="server" Text="" ClientIDMode="Static" Width="240px"></asp:TextBox>
                                                </div>

                                                <div class="filtros_drop_into" style="height: 50px;">
                                                    <asp:Label ID="lblToursNomes" runat="server" Text="Tours:" /><br />
                                                    <asp:DropDownList ID="ddlToursPorSupplier" runat="server" Width="190px" ClientIDMode="Static">
                                                        <asp:ListItem Value="0" Text="Select..."></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>

                                                <div class="filtros_drop_into" style="vertical-align: bottom;">
                                                    <asp:Button ID="btnAddServExtra" runat="server" Text="Add Extra" CssClass="btnGeralAzul" OnClick="btnAddServExtra_Click" />
                                                </div>
                                            </div>

                                        </div>

                                        <div class="BoxAddServExtra" style="display: <%=statusServExtra %>">

                                            <table>
                                                <tr>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblNomeServicoExtra" runat="server" Text="Extra Services:" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtNomeServExtra" runat="server" MaxLength="100" Width="250px" />
                                                    </td>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblNomeSupplierServExtra" runat="server" Text="Supplier:" />
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlSuppliersServExtra" runat="server" Width="250px" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblTipoServicoExtra" runat="server" Text="Service Types:" />
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlTipoServicoExtra" runat="server"></asp:DropDownList>
                                                    </td>
                                                    <td>
                                                        Foto:
                                                    </td>
                                                    <td>
                                                        <asp:HiddenField runat="server" ID="hdfFileServExtraID" />                                                        
                                                        <asp:Button ID="btnShowAddFoto" CssClass="btnGeralAzul" Text="Add Foto" runat="server"
                                                            OnClientClick="AbrirPopUp('AddFoto.aspx', 'Fotos', '820', '460')" />

                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top">
                                                        <asp:Label runat="server" ID="lblDescricaoServicoExtra" Text="Descritivo"></asp:Label>
                                                    </td>
                                                    <td style="text-align: right" colspan="3">
                                                        <cc1:Editor ID="edtDescricaoServicoExtra" runat="server" NoUnicode="true" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right; vertical-align: bottom;">
                                                        <asp:Button ID="btnCadastrarServExtra" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnCadastrarServExtra_Click" />
                                                    </td>
                                                </tr>
                                            </table>

                                        </div>

                                        <div class="DataListHoteis radius">

                                            <asp:DataList ID="DataListToursSubServicos" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base from: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base to: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotalCliente" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblIdMServicoTemporada" runat="server" Text='<%# Eval("IdMServico_Temporada") %>' Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Image ID="spanRecomended" runat="server" ImageUrl="~/images/Icones/recommended.png" ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />
                                                                        <%--<span id="spanRecomended" runat="server" class="fa fa-thumbs-up"></span>--%>
                                                                        <asp:Label ID="lblRecomend" runat="server" Text='<%# Eval("Recommended") %>' Visible="false"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <%--<asp:Image ID="ibtnToursRecommended" runat="server" ImageUrl='<%# Eval("Recomended") == "True" ? "~/images/Icones/infoN.png": "" %>' ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />--%>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddToursFileSub" CommandArgument="<%# Container.ItemIndex %>" />
                                                                        <asp:Button ID="btnSubServAdicionados" runat="server" CssClass="btnGeralAzul" Style="display: none" Text="Sub Services" OnCommand="VerToursSubServicosAdicionados" CommandArgument='<%# Eval("IdMServico_Temporada") %>' />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>
                                                </ItemTemplate>
                                            </asp:DataList>

                                            <asp:Button ID="btnFakeOpenModalSubServAdicionados" runat="server" Text="Group" Style="display: none" />

                                            <asp:Panel ID="PanelSubServAdicionados" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                                                <asp:ImageButton ID="imgFechaModalSubServAdiconados" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                                                <asp:GridView ID="GridSubServPorTemporada" runat="server"
                                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid"
                                                    Height="16px"
                                                    Width="94px">
                                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                    <Columns>

                                                        <asp:BoundField DataField="S_nome" HeaderText="Supplier">

                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Base_de" HeaderText="From" />

                                                        <asp:BoundField DataField="Base_ate" HeaderText="To" />

                                                        <asp:BoundField DataField="MServico_Valores_Bulk_Total" HeaderText="Value" />

                                                    </Columns>
                                                    <PagerStyle CssClass="pgr"></PagerStyle>
                                                </asp:GridView>

                                            </asp:Panel>

                                            <asp:ModalPopupExtender
                                                ID="ModalPopupExtenderSubServAdicionados"
                                                runat="server"
                                                BackgroundCssClass="ModalPopupBG"
                                                CancelControlID="imgFechaModalSubServAdiconados"
                                                DropShadow="false"
                                                Enabled="True"
                                                PopupControlID="PanelSubServAdicionados"
                                                PopupDragHandleControlID="PopupHeader"
                                                RepositionMode="RepositionOnWindowResizeAndScroll"
                                                Drag="true"
                                                TargetControlID="btnFakeOpenModalSubServAdicionados">
                                            </asp:ModalPopupExtender>

                                            <asp:DataList ID="DataListTours" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base from: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base to: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotalCliente" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Date Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <%--<tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Tipo Serviço: 
                                                                        <asp:Label ID="lblTipoServico" runat="server" Font-Bold="true" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_Nome") %>'></asp:Label></span>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Categoria: 
                                                                        <asp:Label ID="LalblTipoServicoCateg" runat="server" Font-Bold="true" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_categ_nome") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>--%>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Image ID="spanRecomended" runat="server" ImageUrl="~/images/Icones/recommended.png" ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />
                                                                        <%--<span id="spanRecomended" runat="server" class="fa fa-thumbs-up"></span>--%>
                                                                        <asp:Label ID="lblRecomend" runat="server" Text='<%# Eval("Recommended") %>' Visible="false"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <%--<asp:Image runat="server" ImageUrl='<%# Eval("Recomended") == "True" ? "~/images/Icones/infoN.png": "" %>' ToolTip="Recommended" Style="width: 24px; height: 24px; border: none" />--%>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddToursFile" CommandArgument="<%# Container.ItemIndex %>" />
                                                                    </td>
                                                                </tr>
                                                            </table>


                                                        </div>
                                                </ItemTemplate>
                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
								<Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="btnCadastrarServExtra" />
                                </Triggers>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-6">

                            <asp:UpdatePanel ID="UpdatePanelCarrinhoFile" runat="server">
                                <ContentTemplate>


                                    <div class="DataListCarrinhoFile">

                                        <table style="border-collapse: collapse; width: 1080px;">
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoHoteis" OnDataBound="GridFileCarrinhoHoteis_DataBound" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="Não existe hoteis adicionados.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Hoteis">
                                                            <ItemTemplate>
                                                                <span class="Description_Grids_Hoteis">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' />

                                                                    <asp:Label ID="lblMealNome" runat="server" Text='<%# string.Format("{0} {1}", Eval("S_meal_nome"), Eval("S_meal_status")) %>' Style="font-size: 10px;" />
                                                                    <asp:Label ID="lblMealStatus" runat="server" Text='<%# Eval("S_meal_status") %>' Style="display: none;" />
                                                                    <br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <asp:Label runat="server" ID="lblCategoria" Text='<%# Eval("Categoria") %>' />
                                                                    - 
                                                                    <asp:Label runat="server" ID="lblRoom" Text='<%# Eval("Room") %>' />
                                                                    <br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "hotel", Eval("File_Tarifas_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                                <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                                <br />

                                                                <span style="font-family: Arial; font-size: 10px;">NrNts:
                                                                </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNumNoites" Text='<%# Eval("NumNoites") %>' runat="server" />
                                                                </span>
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Pacote:
                                                                </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomePacote" Text='<%# Eval("NomePacote") %>' runat="server" />
                                                                </span>
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Cidade: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>


                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" OnCommand="OpenFlightsHoteis" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Flights" />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsHoteis" CommandArgument='<%# Eval("File_Tarifas_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("QtdTarifa") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifa" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTarifa_Command" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Update item" />
                                                                <asp:Label ID="IdFileTarifa" Text='<%# Eval("File_Tarifas_id") %>' runat="server" Visible="false" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Change status" OnCommand="AtualizarStatusHoteis" OnClientClick="return confirm('Do you want to change this item's status?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_Tarifas_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">
                                                                    <span style="font-size: 9px;">
                                                                        <%# Eval("Mod") %>
                                                                    </span>
                                                                    <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />
                                                                </div>
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">
                                                                    <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                    <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                </div>

                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" Enabled='<%# textboxIsEnabled %>' />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">

                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Discount" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifaVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTarifaVenda_Command" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Update Sale" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinho" ToolTip="Excluir"
                                                                    runat="server" CommandArgument='<%# Eval("File_Tarifas_id") %>'
                                                                    OnCommand="ExcluirFileCarrinho"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoTransfers" OnDataBound="GridFileCarrinhoTranfers_DataBound" OnRowCreated="GridFileCarrinhoTransfers_RowCreated" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="There is no services added.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Services">
                                                            <ItemTemplate>
                                                                <asp:HiddenField runat="server" Value='<%# Eval("S_id") %>' ID="hdfSid" />
                                                                <span class="Description_Grids_Trf">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' /><br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <asp:Label ID="lblNomeTrf" runat="server" Text='<%# Eval("TituloTransf") %>' />
                                                                    <br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "transfer", Eval("File_Transf_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                            <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">City: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" OnCommand="OpenFlightsServico" CommandArgument='<%# Eval("File_Transf_id") %>' ToolTip="Flights" />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsServicos" CommandArgument='<%# Eval("File_Transf_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("QtdTarifa") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifa" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTransfers_Command" CommandArgument='<%# Eval("File_Transf_id") %>' />
                                                                <asp:Label ID="IdFileTarifa" Text='<%# Eval("File_Transf_id") %>' runat="server" Visible="false" />
                                                                <asp:Label ID="lblTrfTours" Text='<%# Eval("Trf_Tours") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusServicos" OnClientClick="return confirm('Do you want to change this item's status?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_Transf_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">

                                                                    <span style="font-size: 9px;">
                                                                        <%# Eval("Mod") %>
                                                                    </span>
                                                                    <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />
                                                                    <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                    <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Services" OnCommand="OpenSubServicos" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("File_Transf_id"), Eval("DataFrom"), Eval("DataTo"), Eval("Paying_Pax")) %>' />
                                                                </div>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" Wrap="True" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">
                                                                    <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                    <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                </div>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" Enabled='<%# textboxIsEnabled %>' />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                <br />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTransfersVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTransfersVenda_Command" CommandArgument='<%# Eval("File_Transf_id") %>' ToolTip="Update Sale" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinhoTransf" ToolTip="Delete"
                                                                    runat="server" CommandArgument='<%# Eval("File_Transf_id") %>'
                                                                    OnCommand="ExluirFileCarrinhoTransf"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoExtras" OnDataBound="GridFileCarrinhoExtras_DataBound" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="There is no extra services added.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Extras">
                                                            <ItemTemplate>

                                                                <span class="Description_Grids_Trf">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' /><br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <%# Eval("File_ServExtra_nome") %>
                                                                    <br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "extra", Eval("File_ServExtra_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                            <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Cidade: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" ToolTip="Flights" OnCommand="OpenFlightsServExtra" CommandArgument='<%# Eval("File_ServExtra_id") %>' />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsServExtras" CommandArgument='<%# Eval("File_ServExtra_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("Qtd_ServExtr") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoServExtra" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoServExtra_Command" CommandArgument='<%# Eval("File_ServExtra_id") %>' />
                                                                <asp:Label ID="IdFileServExtra" Text='<%# Eval("File_ServExtra_id") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Change status" OnCommand="AtualizarStatusServicosExtras" OnClientClick="return confirm('Do you want to change this item's status?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_ServExtra_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">
                                                                    <span style="font-size: 9px;">
                                                                        <%# Eval("Mod") %>
                                                                    </span>
                                                                    <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />
                                                                </div>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Disc">
                                                            <ItemTemplate>
                                                                <div style="display: <%=divShowNetMarkup%>">
                                                                    <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                    <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Discount" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                </div>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" Enabled='<%# textboxIsEnabled %>' />

                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Disc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Discount" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                <br />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoServExtraVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoServExtraVenda_Command" CommandArgument='<%# Eval("File_ServExtra_id") %>' ToolTip="Update Sale" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinhoServExtra" ToolTip="Delete"
                                                                    runat="server" CommandArgument='<%# Eval("File_ServExtra_id") %>'
                                                                    OnCommand="ExluirFileCarrinhoExtra"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                        </table>

                                        <br />

                                        <div class="TotaisCarrinho">
                                            <table>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Hotel Total</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelNetNet" runat="server" Text="" CssClass="valoresTotaisCarrinhoNetNet" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Services Total</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinhoNetNet" runat="server" Text="" CssClass="valoresTotaisCarrinhoNetNet" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinhoMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Grand Total</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalNetNet" runat="server" Text="" CssClass="valoresTotaisCarrinhoNetNet" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinhoMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>

                                            </table>
                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-7">

                            <script type="text/javascript">
                                function OpenInfos() {

                                    var e = document.getElementById("ddlTipoQuote");
                                    var strUser = e.options[e.selectedIndex].value;

                                    var f = document.getElementById("ddlFotoQuote");
                                    var foto = f.options[f.selectedIndex].value;

                                    var home = '../../Externo4Star/QuoteGeral.aspx?type=' + strUser + '&foto=' + foto + '&optQuote=' + <%=Session["QuoteAtiva"]%> + '&Code=';
                                    javascript: window.open(home);
                                }
                            </script>

                            <asp:UpdatePanel ID="UpdatePanelQuote" runat="server">
                                <ContentTemplate>

                                    <div class="tabQuote">

                                        <asp:Button ID="btnCopiarFile" runat="server" Text="Copy File" CssClass="btnGeralAzul" OnClick="btnCopiarFile_Click" />

                                        <%--<asp:Button ID="btnPrintQuote" runat="server" Text="Print Quote" CssClass="btnGeralAzul" OnClientClick="OpenInfos" />--%>
                                        <input id="btnPrintQuote" class="btnGeralAzul" value="Print Quote" onclick="OpenInfos()" type="button" />
                                        Tipo:
                                    <asp:DropDownList ID="ddlTipoQuote" runat="server">
                                        <asp:ListItem Selected="True" Value="0" Text="Package" />
                                        <asp:ListItem Value="1" Text="Breakdown" />
                                    </asp:DropDownList>
                                        Picture:
                                    <asp:DropDownList ID="ddlFotoQuote" runat="server">
                                        <asp:ListItem Selected="True" Value="0" Text="Yes" />
                                        <asp:ListItem Value="1" Text="No" />
                                    </asp:DropDownList>
									<br />
									<br />
									<asp:Button runat="server" ID="btnAddTourMap" Text="Add Tour Map" CssClass="btnGeralAzul"
                                            OnClientClick="AbrirPopUp('AddTourMap.aspx', 'Fotos', '820', '460')" />
											
                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>


                        </div>

                        <div id="tabs-8">

                            <asp:UpdatePanel ID="UpdatePanelPrint" runat="server">
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnDownload" />
                                </Triggers>
                                <ContentTemplate>

                                    <div class="ReportsQuote">

                                        <asp:DropDownList ID="ddlTipoRpt" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTipoRpt_SelectedIndexChanged">

                                            <asp:ListItem Value="1" Text="Service Confirmation" />
                                            <asp:ListItem Value="2" Text="Invoice" />
                                            <asp:ListItem Value="3" Text="Voucher" />
                                            <asp:ListItem Value="4" Text="Mapa Serviços" />


                                        </asp:DropDownList>

                                        <asp:DropDownList ID="ddlFormato" runat="server">

                                            <asp:ListItem Value="1" Text="PDF" />
                                            <asp:ListItem Value="2" Text="Word" />
                                            <asp:ListItem Value="3" Text="Excel" />

                                        </asp:DropDownList>

                                        <asp:DropDownList ID="ddlPais" runat="server" Visible="false">
                                        </asp:DropDownList>

                                        <asp:Button ID="btnDownload" runat="server" Text="Download" OnClick="EmitirRelatorio" />

                                        <asp:TextBox runat="server" ID="datainicioRelatorioMapaServicos" />
                                        <asp:TextBox runat="server" ID="dataFimRelatorioMapaServicos" />


                                        <%# Eval("Categoria") %>

                                        <asp:GridView ID="gridHistoricoInvoice" runat="server" AlternatingRowStyle-CssClass="alt" AutoGenerateColumns="False" CssClass="mGrid" GridLines="None" PagerStyle-CssClass="pgr">
                                            <Columns>

                                                <asp:BoundField DataField="Invoice_id" HeaderText="Invoice" />
                                                <asp:BoundField DataField="DataEmissao" HeaderText="Date" />
                                                <asp:BoundField DataField="Grand_Total" HeaderText="Total" />

                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <a href="<%# Eval("CaminhoPDF") %>" target="_blank">Download
                                                        </a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>
                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-9">

                            <asp:UpdatePanel ID="UpdatePanelEmails" runat="server">
                                <ContentTemplate>

                                    <div class="Emails">

                                        <div class="Emails_filtro">

                                            <asp:Label ID="lblEnviarEmailParaTXT" runat="server" Text="Envio: " />
                                            <asp:DropDownList ID="ddlTipoEnvioEmail" runat="server" OnSelectedIndexChanged="ddlTipoEnvioEmail_SelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Selected="True" Value="0" Text="Select" />
                                                <asp:ListItem Value="1" Text="Hotel" />
                                                <asp:ListItem Value="2" Text="Services" />
                                            </asp:DropDownList>

                                            <asp:Label ID="lblSupplierEmailsTXT" runat="server" Text="Supplier: " />
                                            <asp:DropDownList ID="ddlSupplierEmails" OnSelectedIndexChanged="ddlSupplierEmails_SelectedIndexChanged" AutoPostBack="true" runat="server" />
                                        </div>

                                        <div class="Emails_MontaEmail">

                                            <cc1:Editor ID="EditorEmail" NoUnicode="true" runat="server" Visible="false" />

                                        </div>

                                        <div class="Emails_btns">
                                            <asp:Label ID="lblEmailNovo" runat="server" Text="Sending E-mail: " Visible="false" /><asp:TextBox ID="txtEmailNovo" runat="server" MaxLength="200" Width="300" Visible="false" /><br />
                                            <asp:Button ID="btnEnviarEmail" runat="server" Visible="false" Text="Send E-mail" CssClass="btnGeralAzul" OnClick="btnEnviarEmail_Click" />
                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                    </div>

                </div>

            </asp:Panel>

            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>

                    <asp:Button ID="btnFakeGeraFile" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderGeraFile" runat="server" PopupControlID="PanelGeraFile" TargetControlID="btnFakeGeraFile"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelGeraFile" CssClass="ModalPopup" Width="400px" Style="border-radius: 5px; height: auto; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharGerarFile" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Generate File</legend>

                            Select the base that'll generate the file.
                            <table>
                                <tr>
                                    <td style="vertical-align: top;">

                                        <asp:GridView ID="GridColunasFile" runat="server"
                                            AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no registered columns."
                                            Height="16px" Width="94px">
                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <Columns>

                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:RadioButton ID="rdoSelectBase" runat="server" onclick="RadioCheck(this);" />
                                                        <%--<asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("Quotation_Id")%>' />--%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="Ranges_de" HeaderText="From" />
                                                <asp:BoundField DataField="Ranges_ate" HeaderText="To" />

                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                    <td style="vertical-align: top;">

                                        <asp:GridView ID="GridRooms" runat="server" GridLines="None" CssClass="mGrid" AutoGenerateColumns="false" EmptyDataText="There's no rooms.">
                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <Columns>

                                                <asp:BoundField DataField="room" HeaderText="Room" />

                                                <asp:TemplateField HeaderText="Paxs">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtQtd" runat="server" MaxLength="5" Width="50px" OnTextChanged="txtQtd_TextChanged" AutoPostBack="true" TabIndex="1" />
                                                        <asp:TextBox ID="roomsBases" runat="server" Text='<%# Eval("room") %>' Style="display: none"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Rooms">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblqtdRooms" runat="server" Text="" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                    <td style="vertical-align: top;">

                                        <fieldset>
                                            Paxs Serviço:
                                            <asp:TextBox ID="txtQtdPaxs" runat="server" Text="" MaxLength="3" Width="50px" />

                                        </fieldset>

                                    </td>
                                </tr>
                            </table>

                            <br />
                            <asp:Button ID="btnAddSalvarFile" runat="server" Text="Generate File" CssClass="btnGeralAzul" OnClick="btnAddSalvarFile_Click" />

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakeFlights" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderFlights" runat="server" PopupControlID="PanelFlights" TargetControlID="btnFakeFlights"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelFlights" CssClass="ModalPopup" Width="400px" Height="350px" Style="border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharPopFlights" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Flights</legend>
                            <table>
                                <tr>
                                    <td>
                                        <asp:RadioButtonList ID="rdoInOutFlights" runat="server">
                                            <asp:ListItem Selected="True" Value="In" Text="Arrives" />
                                            <asp:ListItem Value="To" Text="Departs" />
                                        </asp:RadioButtonList>
                                    </td>
                                    <td colspan="2">
                                        <asp:Label runat="server" ID="lblConfirmationNumber" Text="Confirmation Number"></asp:Label>
                                        <br />
                                        <asp:TextBox runat="server" ID="txtConfirmationNumber"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCidadeFlights" runat="server" Text="City" />
                                        <asp:LinkButton ID="lnkEscreverCidade" runat="server" Text="Add" OnClick="lnkEscreverCidade_Click" />
                                        <asp:LinkButton ID="lnkEscreverCidadeCancelar" runat="server" Text="Cancel" Visible="false" OnClick="lnkEscreverCidadeCancelar_Click" />
                                        <br />
                                        <asp:DropDownList ID="ddlCidadeFlights" runat="server" Width="100px" />
                                        <asp:TextBox ID="txtCidadeFlights" runat="server" MaxLength="50" Visible="false" Width="80px" />
                                    </td>
                                    <td colspan="2">
                                        <asp:Label ID="lblFlight" runat="server" Text="Flight" /><br />
                                        <asp:TextBox ID="txtFlight" runat="server" MaxLength="50" Width="200px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblHouraFlight" runat="server" Text="Time" /><br />
                                        <asp:TextBox ID="txtHoraFlight" runat="server" MaxLength="50" Width="80px" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblPickUpFlights" runat="server" Text="Pick Up" /><br />
                                        <asp:TextBox ID="txtPickUpFlight" runat="server" MaxLength="50" Width="80px" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDropOffFlights" runat="server" Text="Drop Off" /><br />
                                        <asp:TextBox ID="txtDropOffFlight" runat="server" MaxLength="50" Width="150px" />
                                    </td>
                                </tr>
                            </table>

                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblRemarksFligths" runat="server" Text="Remarks" /><br />
                                        <asp:TextBox ID="txtRemarksFlight" runat="server" MaxLength="100" Width="331px" TextMode="MultiLine" Height="85px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSalvarFlight" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnSalvarFlight_Click" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakePaxs" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderPaxs" runat="server" PopupControlID="PanelPaxs" TargetControlID="btnFakePaxs"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelPaxs" CssClass="ModalPopup" Width="258px" Height="200px" Style="border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharPopPaxs" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Paxs</legend>

                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblPaxsPop" runat="server" Text="Paxs" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPaxsPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblPayingPaxPop" runat="server" Text="Paying Pax" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPayingPaxPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblSuppPayingPaxPop" runat="server" Text="Supplier Paying Pax" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSupplierPayingPaxPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSalvarPaxsPop" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarPaxsPop_Click" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakeTarifasGrids" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderTarifasGrids" runat="server" PopupControlID="PanelTarifasGrids" TargetControlID="btnFakeTarifasGrids"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelTarifasGrids" CssClass="ModalPopup" Width="309px" Style="height: auto; border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharTarifasGrids" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Currency Rates:
                                <asp:Label ID="lblMoedaTarifas" runat="server" Text="" /></legend>

                            <table>
                                <tr>
                                    <td style="text-align: center;">Paying Pax
                                        <br />
                                        <asp:TextBox ID="txtPaxsTarifas" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                    <td style="text-align: center;">Supplier Paying Pax
                                        <br />
                                        <asp:TextBox ID="txtSupplierPayPaxs" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: center;">Paxs
                                        <br />
                                        <asp:TextBox ID="txtPaxs" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                    <td style="text-align: center;">Net/Net
                                        <br />
                                        <asp:TextBox ID="txtNetNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td style="text-align: center;">Markup
                                        <br />
                                        <asp:TextBox ID="txtMarkupTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td style="text-align: center;">Discount
                                        <br />
                                        <asp:TextBox ID="txtDescontoTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td style="text-align: center;">MarkupNet
                                        <br />
                                        <asp:TextBox ID="txtMarkupNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td style="text-align: center;">DiscountNet
                                        <br />
                                        <asp:TextBox ID="txtDescontoNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td style="text-align: center;">Net
                                        <br />
                                        <asp:TextBox ID="txtNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td style="text-align: center;">Sale
                                        <br />
                                        <asp:TextBox ID="txtVendaTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td style="text-align: center;">Total
                                        <br />
                                        <asp:Label ID="lbltotalTarifas" runat="server" Text="" />
                                    </td>
                                    <td style="text-align: center;">
                                        <asp:ImageButton ID="imgAtualizaTarifas" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                            ToolTip="Update Rates" Height="18px" Width="20px" OnClick="imgAtualizaTarifas_Click" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>


                    </asp:Panel>

                    <asp:Button ID="btnFakeAddDatasCarrinho" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddDatasCarrinho" runat="server"
                        PopupControlID="PanelAddDatasCarrinho" TargetControlID="btnFakeAddDatasCarrinho"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddDatasCarrinho" CssClass="ModalPopup" Width="153px" Height="129px" Style="border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddDatasCarrinho" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />


                        <table>
                            <tr>
                                <td>Number of days:
                                    <br />
                                    <asp:TextBox ID="txtNumDiasAddCarrinho" runat="server" Text="" MaxLength="5" Width="50px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkAddNumDiasCarrinho" runat="server" Text="Add in the whole file?" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnAddNumDiasCarrinho" runat="server" Text="Add" CssClass="btnGeralAzul" OnClick="btnAddNumDiasCarrinho_Click" />
                                </td>
                            </tr>
                        </table>

                    </asp:Panel>

                    <asp:Button ID="btnCopiarFilefake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderCopiarFile" runat="server"
                        PopupControlID="PanelCopiarFile" TargetControlID="btnCopiarFilefake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelCopiarFile" CssClass="ModalPopup" Width="153px" Height="163px" Style="border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharCopiarFile" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <table>
                            <tr>
                                <td>File to copy:
                                    <br />
                                    <asp:Label ID="lblFilePCopiar" runat="server" Text="" Style="font-weight: bold" />
                                </td>
                            </tr>
                            <tr>
                                <td>New initial date:
                                    <br />
                                    <asp:TextBox ID="txtDataAddDias" runat="server" Text="" MaxLength="11" Width="80px" ViewStateMode="Enabled" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnCopiarFileGeral" runat="server" CssClass="btnGeralAzul" Text="Copy" OnClick="btnCopiarFileGeral_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td>New File:
                                    <asp:Label ID="lblNovoFileCopiado" runat="server" Style="font-family: Arial; font-size: 12px; font-weight: bold;" Text="" />
                                </td>
                            </tr>
                        </table>

                    </asp:Panel>

                    <asp:Button ID="btnPoliticaChdFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderPoliticaChd" runat="server"
                        PopupControlID="PanelPoliticaChd" TargetControlID="btnPoliticaChdFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelPoliticaChd" CssClass="ModalPopup" Style="width: auto; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharPoliticaChd" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <asp:GridView ID="GridPoliticasCHDCadastro" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no registered policy."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="S_politicaCHD_qtd" HeaderText="Nr Chds">
                                        <HeaderStyle Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="S_politicaCHD_idadeDe" HeaderText="From" />
                                    <asp:BoundField DataField="S_politicaCHD_idade" HeaderText="To" />
                                    <asp:BoundField DataField="S_politicaCHD_free" HeaderText="Free" />
                                    <asp:BoundField DataField="S_politicaCHD_valor" HeaderText="Value" />
                                    <asp:BoundField DataField="S_politicaCHD_percent" HeaderText="Percent" />

                                </Columns>
                            </asp:GridView>
                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnMsgOperadorFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderMsgOperador" runat="server"
                        PopupControlID="PanelMsgOperador" TargetControlID="btnMsgOperadorFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelMsgOperador" CssClass="ModalPopup" Style="width: 400px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharMsgOp" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Remarks</b>
                            <br />
                            <br />
                            <asp:Label ID="lblMsgOperador" runat="server" Text="" Style="font-size: 12px;" />

                        </div>


                    </asp:Panel>

                    <asp:Button ID="btnDelColunasFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderDelColunas" runat="server"
                        PopupControlID="PanelDelColunas" TargetControlID="btnDelColunasFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelDelColunas" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="ImageButton1" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Colunas</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridDelColunas" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no registered column."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="From" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="To" />

                                    <asp:TemplateField HeaderText="Del">
                                        <ItemTemplate>

                                            <asp:ImageButton ID="ExluirColunas" ToolTip="Delete"
                                                runat="server" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("Ranges_de"), Eval("Ranges_ate"), Eval("Quotation_Id"), Eval("Ordem")) %>'
                                                OnCommand="ExluirColunas_Command"
                                                ImageUrl="~/images/Icones/delete.png" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>

                        </div>


                    </asp:Panel>

                    <asp:Button ID="btnOrdenarColunasFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderOrdenarColunas" runat="server"
                        PopupControlID="PanelOrdenarColunas" TargetControlID="btnOrdenarColunasFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelOrdenarColunas" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharOrdenarColunas" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Columns</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridViewOrdenarColunas" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no registered column."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="From" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="To" />

                                    <asp:TemplateField HeaderText="Del">
                                        <ItemTemplate>

                                            <asp:TextBox ID="txtOrdem" runat="server" Text='<%# Eval("Ordem") %>' MaxLength="2" Width="30px" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnOrdenarColunas" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnOrdenarColunas_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddTcFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddTc" runat="server"
                        PopupControlID="PanelAddTC" TargetControlID="btnAddTcFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddTC" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddTC" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Columns</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridViewAddTc" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no registered column."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="From" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="To" />

                                    <asp:TemplateField HeaderText="TC">
                                        <ItemTemplate>

                                            <asp:TextBox ID="txtQtdTC" runat="server" Text="" MaxLength="2" Width="30px" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnSalvaTC" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnSalvaTC_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddNomeOpts" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddNomeOpts" runat="server"
                        PopupControlID="PanelAddNomeOpts" TargetControlID="btnAddNomeOpts"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddNomeOpts" CssClass="ModalPopup" Style="width: 200px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="ImageButton2" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 190px; margin-top: 10px; text-align: center;">

                            <asp:GridView ID="GridOptsFile" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="There's no option files."
                                Height="16px" Width="100px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:TemplateField HeaderText="Options">

                                        <ItemTemplate>
                                            <table cellspacing="0" cellpadding="0" style="border: none;">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblNumOpc" runat="server" Text='<%# string.Format("{0}:{1}", "Opção" , Eval("OptQuote")) %>' />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtNomeOpcao" runat="server" Text='<%# Eval("OptQuoteNome") %>' placeholder="Option name" MaxLength="50" Width="100px" />
                                                    </td>
                                                </tr>
                                            </table>

                                            <asp:Label ID="lblnum" runat="server" Text='<%# Eval("OptQuote") %>' Visible="false" />
                                        </ItemTemplate>

                                        <%--<FooterTemplate>

                                            <table cellspacing="0" cellpadding="0" style="border: none;">
                                                <tr>
                                                    <th>Cadastro:</th>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtNovaNomeOpcao" runat="server" Text='<%# Eval("OptQuoteNome") %>' MaxLength="50" Width="100px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnSalvarNovaNomeOpts" runat="server" Text="add" OnCommand="btnSalvarNovaNomeOpts_Command" Height="22px" />
                                                    </td>
                                                </tr>
                                            </table>

                                        </FooterTemplate>--%>

                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnSalvarNomeOpts" runat="server" Text="Save" CssClass="btnGeralAzul" OnClick="btnSalvarNomeOpts_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddTarifaHotelVaziaFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddTarifaHotelVazia" runat="server"
                        PopupControlID="PanelAddTarfiaHotelVazia" TargetControlID="btnAddTarifaHotelVaziaFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddTarfiaHotelVazia" CssClass="ModalPopup" Style="width: 350px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddTarifaVazia" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 350px; margin-top: 10px;">

                            <fieldset>
                                <legend>Add Hotel</legend>

                                <table>
                                    <tr>
                                        <td>Category
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlCategoriaAddTarifaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Room
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlRoomAddTarifaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Currency
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlMoedaAddTafiaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAddTarifaHotelVazia" runat="server" Text="Add" CssClass="btnGeralAzul" OnClick="btnAddTarifaHotelVazia_Click" />
                                        </td>
                                    </tr>
                                </table>

                            </fieldset>

                        </div>

                    </asp:Panel>

                </ContentTemplate>
            </asp:UpdatePanel>

            <div id="UpdateProgress"
                style="position: absolute; z-index: 1; left: 50%; top: 50%;">
                <asp:UpdateProgress ID="preLoading" runat="server"
                    AssociatedUpdatePanelID="">
                    <ProgressTemplate>

                        <asp:Image ID="imgLoading" runat="server"
                            ImageUrl="~/Images/ajax-loaderG.gif" />

                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>

        </div>

    </form>
</body>
</html>
